#include "kernel/types.h"
#include "kernel/stat.h"
#include "user/user.h"
#include "kernel/sysinfo.h"

int main(void)
{
    struct sysinfo info;
    if (sysinfo((char *)&info) < 0)
    {
        printf("sysinfo error.\r\n");
        exit(0);
    }

    printf("free mem:%d\r\nunused process:%d\r\n", info.num_freemem, info.num_unusedproc);
    exit(0);
}